package com.macro.mall.service;

import com.macro.mall.dto.BmsMpSlideshowParam;
import com.macro.mall.dto.BmsSightseeingBusParam;
import com.macro.mall.model.BmsMpSlideshow;
import com.macro.mall.model.BmsSightseeingBus;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 商品属性管理Service
 * Created by macro on 2018/4/26.
 */
public interface BmsSightseeingBusService {
    /**
     * 获取观光车数据
     */
    List<BmsSightseeingBus> getList(BmsSightseeingBusParam bmsSightseeingBusParam);

    /**
     * 新增观光车
     */
    @Transactional
    int create(BmsSightseeingBusParam bmsSightseeingBusParam);

    /**
     * 修改观光车
     */
    int update(BmsSightseeingBusParam bmsSightseeingBusParam);

    /**
     * 获取观光车信息
     */
    BmsSightseeingBus getItem(Long id);

    /**
     * 批量删除观光车
     */
    @Transactional
    int delete(List<Long> ids);

    /**
     * 修改观光车状态
     * @return
     */
   int updateShowStatus(BmsSightseeingBusParam bmsSightseeingBusParam);


    /**
     * 小程序查询观光车
     */
    List<BmsSightseeingBus> getMpList();


    /**
     * 观光车小程序详情
     */
    List<BmsSightseeingBus> getMpDetail(Long id);
}
